@extends('admin_system/public/angular-layout')
<body ng-app="admin-app" ng-controller="readPartyController">
<div class="main-container">

    {{--顶部导航--}}
    <div class="col-xs-12 top-nav nav">
        <p class="float-left nav-path"><strong>当前位置：</strong>读书会管理>>读书会成员</p>

        {{--返回按钮--}}
        <button type="button" class="btn btn-default float-right back" aria-label="Left Align">
            <span class="glyphicon glyphicon-arrow-left back" aria-hidden="true"></span>
            <span>返回</span>
        </button>

        <a class="btn btn-danger float-right mr10" aria-label="Left Align" href="{{asset('admin_system/readingparty/add_member?readId='.$readId)}}">
            <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
            <span>添加成员</span>
        </a>
    </div>

    <div class="h10 col-xs-12"></div>

    {{--正文内容--}}
    <div class="content-box col-xs-12 mt20 pb20 pt20">

        <form class="form-inline nav mb10" method="get" action="{{asset('admin_system/readingparty/members')}}">
            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">查询</div>
                    <input name="keywords" class="form-control"  placeholder="按公司名称查询" value="{{$keywords}}">
                    <input type="hidden" value="{{$readId}}" name="readId">
                    {{csrf_field()}}
                </div>
            </div>
            <button type="submit" class="btn btn-primary">搜索</button>
        </form>


        <table class="table table-hover table-bordered">
            <tr>
                <th>编号</th>
                <th>部门</th>
                <th>职位</th>
                <th>用户名称</th>
                <th>手机</th>
                <th>头像</th>
                <th>打赏权限</th>
                <th>是否在职</th>
                <th>查看赠礼</th>
                <th>学习币</th>
                <th>加入时间</th>
                <th>操作</th>
            </tr>

            @foreach($members as $member)
                <tr>
                    <td>{{$loop->iteration}}</td>
                    <td>{{$member->department_name}}</td>
                    <td>{{$member->job}}</td>
                    <td>{{$member->YourName}}</td>
                    <th>{{$member->UserName}}</th>
                    <td><img src="{{$member->FilePath1}}" style="width:50px;"></td>
                    <td>
                        @if($member->reward_right == 1)有@else没有@endif
                    </td>
                    <td>
                        @if($member->is_employee == 0)
                            <span class="glyphicon glyphicon-remove text-gray"></span>
                        @else
                            <span class="glyphicon glyphicon-ok text-green"></span>
                        @endif
                    </td>
                    <td>@if($member->look_gift_right == 1)<span class="red">能</span>@else否@endif</td>
                    <td>{{$member->StudyMoney}}</td>
                    <td>{{$member->add_date}}</td>
                    <td>
                        {{--<span  class="btn btn-xs btn-info" ng-click="delete_read_party_member({{$readId}},{{$member->UserID}})">移除</span>--}}
                        <span  class="btn btn-xs btn-info" onClick="alert('该功能暂时关闭');">移除</span>
                        {{--<a href="{{asset('admin_system/ad/delete?adId='.$member->read_user_id)}}" class="btn btn-xs btn-danger">移除</a>--}}
                    </td>
                </tr>
            @endforeach
        </table>
    </div>

    <div class="pagectrl clearfix">
        {!! $paginator->appends(['readId'=>$readId,'keywords'=>$keywords])->render() !!}
    </div>
</div>
</body>

<style>
    .red{
        color:red;
    }
</style>